package com.mdd.front.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("开店申请创建参数")
public class ShopAppRecordCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @NotNull(message = "shopName参数缺失")
    @ApiModelProperty(value = "商户名称")
    private String shopName;

    @NotNull(message = "shopCategory参数缺失")
    @ApiModelProperty(value = "主营类目")
    private String shopCategory;

    @NotNull(message = "contactName参数缺失")
    @ApiModelProperty(value = "联系人姓名")
    private String contactName;

    @NotNull(message = "phone参数缺失")
    @ApiModelProperty(value = "手机号码")
    private String phone;

    @NotNull(message = "userName参数缺失")
    @ApiModelProperty(value = "创建账号（后台）")
    private String userName;

    @NotNull(message = "password参数缺失")
    @ApiModelProperty(value = "密码（后台）")
    private String password;

    @NotNull(message = "businessLicense参数缺失")
    @ApiModelProperty(value = "营业执照")
    private String businessLicense;

    @ApiModelProperty(value = "是否同意入驻协议(0、不同意 1、同意 默认0)")
    private Integer isAgree;


    @NotNull(message = "code参数缺失")
    @ApiModelProperty(value = "验证码")
    private String code;

}
